Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Two Buttons in DialogFooter #1048

Merged
merged 5 commits into from
Nov 9, 2018
Merged

Conversation

swaterkamp
Copy link
Member

  • Make the two button footer an own component
  • Use it where appropriate (powerfilter and all savedialogs)

Both buttons can be titled and given handlers independently.
Default title for the left button is "Cancel".
Loading indicator only on right button.

This will be reused in a new Footer component.

Also the padding is adjusted to match left-button/dialog-margin distance 
to right-button/dialog-margin distance.
@swaterkamp swaterkamp self-assigned this Nov 9, 2018
@codecov
Copy link

codecov bot commented Nov 9, 2018

Codecov Report

Merging #1048 into master will increase coverage by 0.03%.
The diff coverage is 29.16%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master   #1048      +/-   ##
=========================================
+ Coverage   13.47%   13.5%   +0.03%     
=========================================
  Files         821     822       +1     
  Lines       26641   26640       -1     
  Branches     5618    5620       +2     
=========================================
+ Hits         3590    3598       +8     
+ Misses      21599   21590       -9     
  Partials     1452    1452
Impacted Files Coverage Δ
...rc/web/components/dialog/linkconfirmationdialog.js 94.73% <ø> (-0.27%) ⬇️
gsa/src/web/components/dialog/savedialog.js 0% <0%> (ø) ⬆️
...src/web/components/powerfilter/withFilterDialog.js 0% <0%> (ø) ⬆️
gsa/src/web/components/dialog/twobuttonfooter.js 100% <100%> (ø)
gsa/src/web/components/dialog/footer.js 60% <50%> (+60%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 84d7629...64ecfdb. Read the comment docs.

@swaterkamp swaterkamp merged commit 48454f1 into greenbone:master Nov 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants